{
    "global": {
        "ask_for_confirmation_before_quitting": true,
        "check_for_updates_on_startup": true,
        "show_in_menu_bar": true,
        "show_profile_name_in_menu_bar": false,
        "unsafe_ui": false
    },
    "profiles": [
        {
            "complex_modifications": {
                "parameters": {
                    "basic.simultaneous_threshold_milliseconds": 50,
                    "basic.to_delayed_action_delay_milliseconds": 500,
                    "basic.to_if_alone_timeout_milliseconds": 200,
                    "basic.to_if_held_down_threshold_milliseconds": 200,
                    "mouse_motion_to_scroll.speed": 100
                },
                "rules": [
                    {
                        "description": "spacebar",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_unless"
                                    }
                                ],
                                "from": {
                                    "key_code": "spacebar",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to": [
                                    {
                                        "key_code": "spacebar"
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "spacebar",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "parameters": {
                                    "basic.to_if_held_down_threshold_milliseconds": 120
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "spacebar"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "key_code": "spacebar",
                                        "repeat": true
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "spacebar pressed",
                                        "type": "variable_if",
                                        "value": 1
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 1
                                    }
                                ],
                                "from": {
                                    "key_code": "spacebar",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to": [
                                    {
                                        "key_code": "spacebar"
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 1
                                    }
                                ],
                                "from": {
                                    "key_code": "spacebar",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "spacebar"
                                    },
                                    {
                                        "set_variable": {
                                            "name": "spacebar pressed",
                                            "value": 1
                                        }
                                    }
                                ],
                                "to_delayed_action": {
                                    "to_if_canceled": [
                                        {
                                            "set_variable": {
                                                "name": "spacebar pressed",
                                                "value": 0
                                            }
                                        }
                                    ],
                                    "to_if_invoked": [
                                        {
                                            "set_variable": {
                                                "name": "spacebar pressed",
                                                "value": 0
                                            }
                                        }
                                    ]
                                },
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "key_code": "b",
                                        "modifiers": [
                                            "left_shift",
                                            "left_control"
                                        ],
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "left_command",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Books"
                                        ],
                                        "type": "frontmost_application_if"
                                    }
                                ],
                                "from": {
                                    "key_code": "left_command",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to": [
                                    {
                                        "key_code": "left_arrow"
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "left_command",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "parameters": {
                                    "basic.to_if_held_down_threshold_milliseconds": 120
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "delete_or_backspace"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "key_code": "delete_or_backspace",
                                        "repeat": true
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 1
                                    }
                                ],
                                "from": {
                                    "key_code": "left_command",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to": [
                                    {
                                        "key_code": "delete_or_backspace"
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "name": "left_command pressed",
                                        "type": "variable_if",
                                        "value": 1
                                    }
                                ],
                                "from": {
                                    "key_code": "left_command",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to": [
                                    {
                                        "key_code": "delete_or_backspace"
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_unless"
                                    }
                                ],
                                "from": {
                                    "key_code": "left_command",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to": [
                                    {
                                        "set_variable": {
                                            "name": "left_command pressed",
                                            "value": 1
                                        }
                                    },
                                    {
                                        "key_code": "left_command",
                                        "lazy": true
                                    }
                                ],
                                "to_delayed_action": {
                                    "to_if_canceled": [
                                        {
                                            "set_variable": {
                                                "name": "left_command pressed",
                                                "value": 0
                                            }
                                        }
                                    ],
                                    "to_if_invoked": [
                                        {
                                            "set_variable": {
                                                "name": "left_command pressed",
                                                "value": 0
                                            }
                                        }
                                    ]
                                },
                                "to_if_alone": [
                                    {
                                        "key_code": "delete_or_backspace"
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "q",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "q",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "q"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "key_code": "equal_sign",
                                        "modifiers": [
                                            "left_shift",
                                            "left_control"
                                        ]
                                    },
                                    {
                                        "halt": true,
                                        "key_code": "q",
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 1
                                    }
                                ],
                                "from": {
                                    "key_code": "q",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "q"
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Books"
                                        ],
                                        "type": "frontmost_application_if"
                                    }
                                ],
                                "from": {
                                    "key_code": "q",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "halt": true,
                                        "key_code": "q",
                                        "modifiers": [
                                            "left_command"
                                        ],
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "w",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "w",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "w"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "key_code": "a",
                                        "modifiers": [
                                            "control"
                                        ]
                                    },
                                    {
                                        "halt": true,
                                        "key_code": "a",
                                        "modifiers": [
                                            "control"
                                        ],
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 1
                                    }
                                ],
                                "from": {
                                    "key_code": "w",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "w"
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "e",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/VLC"
                                        ],
                                        "type": "frontmost_application_if"
                                    }
                                ],
                                "from": {
                                    "key_code": "e",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to": [
                                    {
                                        "key_code": "i"
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "e",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "e"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "key_code": "equal_sign",
                                        "modifiers": [
                                            "left_shift",
                                            "left_control"
                                        ]
                                    },
                                    {
                                        "halt": true,
                                        "key_code": "e",
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 1
                                    }
                                ],
                                "from": {
                                    "key_code": "e",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "e"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "key_code": "equal_sign",
                                        "modifiers": [
                                            "left_shift",
                                            "left_control"
                                        ]
                                    },
                                    {
                                        "halt": true,
                                        "key_code": "e",
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "r",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "r",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "r"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "key_code": "equal_sign",
                                        "modifiers": [
                                            "left_shift",
                                            "left_control"
                                        ]
                                    },
                                    {
                                        "halt": true,
                                        "key_code": "r",
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 1
                                    }
                                ],
                                "from": {
                                    "key_code": "r",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "r"
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "t",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "t",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "t"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "key_code": "equal_sign",
                                        "modifiers": [
                                            "left_shift",
                                            "left_control"
                                        ]
                                    },
                                    {
                                        "halt": true,
                                        "key_code": "t",
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 1
                                    }
                                ],
                                "from": {
                                    "key_code": "t",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "t"
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "y",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "y",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "y"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "key_code": "b",
                                        "modifiers": [
                                            "left_shift",
                                            "left_control"
                                        ]
                                    },
                                    {
                                        "halt": true,
                                        "key_code": "y",
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 1
                                    }
                                ],
                                "from": {
                                    "key_code": "y",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "y"
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "u",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "u",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "u"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "key_code": "b",
                                        "modifiers": [
                                            "left_shift",
                                            "left_control"
                                        ]
                                    },
                                    {
                                        "halt": true,
                                        "key_code": "u",
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 1
                                    }
                                ],
                                "from": {
                                    "key_code": "u",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "u"
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "i",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "i",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "parameters": {
                                    "basic.to_if_held_down_threshold_milliseconds": 120
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "i"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "key_code": "i",
                                        "repeat": true
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 1
                                    }
                                ],
                                "from": {
                                    "key_code": "i",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "parameters": {
                                    "basic.to_if_held_down_threshold_milliseconds": 120
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "i"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "key_code": "i",
                                        "repeat": true
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "o",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "o",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "o"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "key_code": "b",
                                        "modifiers": [
                                            "left_shift",
                                            "left_control"
                                        ]
                                    },
                                    {
                                        "halt": true,
                                        "key_code": "o",
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 1
                                    }
                                ],
                                "from": {
                                    "key_code": "o",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "o"
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "p",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "p",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "p"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "key_code": "b",
                                        "modifiers": [
                                            "left_shift",
                                            "left_control"
                                        ]
                                    },
                                    {
                                        "halt": true,
                                        "key_code": "p",
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 1
                                    }
                                ],
                                "from": {
                                    "key_code": "p",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "p"
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "open_bracket",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "open_bracket",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "open_bracket"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "key_code": "b",
                                        "modifiers": [
                                            "left_shift",
                                            "left_control"
                                        ]
                                    },
                                    {
                                        "halt": true,
                                        "key_code": "open_bracket",
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 1
                                    }
                                ],
                                "from": {
                                    "key_code": "open_bracket",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "open_bracket"
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "close_bracket",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "close_bracket",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "close_bracket"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "key_code": "equal_sign",
                                        "modifiers": [
                                            "left_shift",
                                            "left_control"
                                        ]
                                    },
                                    {
                                        "halt": true,
                                        "key_code": "close_bracket",
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 1
                                    }
                                ],
                                "from": {
                                    "key_code": "close_bracket",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "close_bracket"
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "a",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "a",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "a"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "key_code": "equal_sign",
                                        "modifiers": [
                                            "left_shift",
                                            "left_control"
                                        ]
                                    },
                                    {
                                        "halt": true,
                                        "key_code": "a",
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 1
                                    }
                                ],
                                "from": {
                                    "key_code": "a",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "a"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "key_code": "equal_sign",
                                        "modifiers": [
                                            "left_shift",
                                            "left_control"
                                        ]
                                    },
                                    {
                                        "halt": true,
                                        "key_code": "a",
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "s",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/VLC"
                                        ],
                                        "type": "frontmost_application_if"
                                    }
                                ],
                                "from": {
                                    "key_code": "s",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to": [
                                    {
                                        "key_code": "j"
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "s",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "s"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "key_code": "equal_sign",
                                        "modifiers": [
                                            "left_shift",
                                            "left_control"
                                        ]
                                    },
                                    {
                                        "halt": true,
                                        "key_code": "s",
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 1
                                    }
                                ],
                                "from": {
                                    "key_code": "s",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "s"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "key_code": "equal_sign",
                                        "modifiers": [
                                            "left_shift",
                                            "left_control"
                                        ]
                                    },
                                    {
                                        "halt": true,
                                        "key_code": "s",
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "d",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/VLC"
                                        ],
                                        "type": "frontmost_application_if"
                                    }
                                ],
                                "from": {
                                    "key_code": "d",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to": [
                                    {
                                        "key_code": "k"
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "d",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "d"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "key_code": "equal_sign",
                                        "modifiers": [
                                            "left_shift",
                                            "left_control"
                                        ]
                                    },
                                    {
                                        "halt": true,
                                        "key_code": "d",
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 1
                                    }
                                ],
                                "from": {
                                    "key_code": "d",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "d"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "key_code": "equal_sign",
                                        "modifiers": [
                                            "left_shift",
                                            "left_control"
                                        ]
                                    },
                                    {
                                        "halt": true,
                                        "key_code": "d",
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "f",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/VLC"
                                        ],
                                        "type": "frontmost_application_if"
                                    }
                                ],
                                "from": {
                                    "key_code": "f",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to": [
                                    {
                                        "key_code": "l"
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "f",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "f"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "key_code": "equal_sign",
                                        "modifiers": [
                                            "left_shift",
                                            "left_control"
                                        ]
                                    },
                                    {
                                        "halt": true,
                                        "key_code": "f",
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 1
                                    }
                                ],
                                "from": {
                                    "key_code": "f",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "f"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "key_code": "equal_sign",
                                        "modifiers": [
                                            "left_shift",
                                            "left_control"
                                        ]
                                    },
                                    {
                                        "halt": true,
                                        "key_code": "f",
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "g",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "g",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "g"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "key_code": "equal_sign",
                                        "modifiers": [
                                            "left_shift",
                                            "left_control"
                                        ]
                                    },
                                    {
                                        "halt": true,
                                        "key_code": "g",
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 1
                                    }
                                ],
                                "from": {
                                    "key_code": "g",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "g"
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "h",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "h",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "h"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "key_code": "b",
                                        "modifiers": [
                                            "left_shift",
                                            "left_control"
                                        ]
                                    },
                                    {
                                        "halt": true,
                                        "key_code": "h",
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 1
                                    }
                                ],
                                "from": {
                                    "key_code": "h",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "h"
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "j",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "j",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "parameters": {
                                    "basic.to_if_held_down_threshold_milliseconds": 120
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "j"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "key_code": "j",
                                        "repeat": true
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 1
                                    }
                                ],
                                "from": {
                                    "key_code": "j",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "parameters": {
                                    "basic.to_if_held_down_threshold_milliseconds": 120
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "j"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "key_code": "j",
                                        "repeat": true
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "k",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "k",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "parameters": {
                                    "basic.to_if_held_down_threshold_milliseconds": 120
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "k"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "key_code": "k",
                                        "repeat": true
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 1
                                    }
                                ],
                                "from": {
                                    "key_code": "k",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "parameters": {
                                    "basic.to_if_held_down_threshold_milliseconds": 120
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "k"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "key_code": "k",
                                        "repeat": true
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "l",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "l",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "parameters": {
                                    "basic.to_if_held_down_threshold_milliseconds": 120
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "l"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "key_code": "l",
                                        "repeat": true
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 1
                                    }
                                ],
                                "from": {
                                    "key_code": "l",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "parameters": {
                                    "basic.to_if_held_down_threshold_milliseconds": 120
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "l"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "key_code": "l",
                                        "repeat": true
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": ";",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "semicolon",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "semicolon"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "key_code": "b",
                                        "modifiers": [
                                            "left_shift",
                                            "left_control"
                                        ]
                                    },
                                    {
                                        "halt": true,
                                        "key_code": "semicolon",
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 1
                                    }
                                ],
                                "from": {
                                    "key_code": "semicolon",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "semicolon"
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "'",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "quote",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "quote"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "key_code": "b",
                                        "modifiers": [
                                            "left_shift",
                                            "left_control"
                                        ]
                                    },
                                    {
                                        "halt": true,
                                        "key_code": "quote",
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 1
                                    }
                                ],
                                "from": {
                                    "key_code": "quote",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "quote"
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "z",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "z",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "z"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "key_code": "r",
                                        "modifiers": [
                                            "left_control"
                                        ],
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 1
                                    }
                                ],
                                "from": {
                                    "key_code": "z",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "z"
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "x",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "x",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "x"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "repeat": false,
                                        "shell_command": "/Applications/emacsclient --no-wait --eval '(save-buffers-kill-terminal)' && sleep 0.05 && open -a 'Emacs'"
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 1
                                    }
                                ],
                                "from": {
                                    "key_code": "x",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "x"
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "c",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "c",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "c"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "key_code": "equal_sign",
                                        "modifiers": [
                                            "left_shift",
                                            "left_control"
                                        ]
                                    },
                                    {
                                        "halt": true,
                                        "key_code": "c",
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 1
                                    }
                                ],
                                "from": {
                                    "key_code": "c",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "c"
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "v",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "v",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "v"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "key_code": "equal_sign",
                                        "modifiers": [
                                            "left_shift",
                                            "left_control"
                                        ]
                                    },
                                    {
                                        "halt": true,
                                        "key_code": "v",
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 1
                                    }
                                ],
                                "from": {
                                    "key_code": "v",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "v"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "key_code": "equal_sign",
                                        "modifiers": [
                                            "left_shift",
                                            "left_control"
                                        ]
                                    },
                                    {
                                        "halt": true,
                                        "key_code": "v",
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "b",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "b",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "b"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "key_code": "equal_sign",
                                        "modifiers": [
                                            "left_shift",
                                            "left_control"
                                        ]
                                    },
                                    {
                                        "halt": true,
                                        "key_code": "b",
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 1
                                    }
                                ],
                                "from": {
                                    "key_code": "b",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "b"
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "n",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "n",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "n"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "key_code": "b",
                                        "modifiers": [
                                            "left_shift",
                                            "left_control"
                                        ]
                                    },
                                    {
                                        "halt": true,
                                        "key_code": "n",
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 1
                                    }
                                ],
                                "from": {
                                    "key_code": "n",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "n"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "key_code": "b",
                                        "modifiers": [
                                            "left_shift",
                                            "left_control"
                                        ]
                                    },
                                    {
                                        "halt": true,
                                        "key_code": "n",
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "m",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "m",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "m"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "key_code": "b",
                                        "modifiers": [
                                            "left_shift",
                                            "left_control"
                                        ]
                                    },
                                    {
                                        "halt": true,
                                        "key_code": "m",
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 1
                                    }
                                ],
                                "from": {
                                    "key_code": "m",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "m"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "key_code": "b",
                                        "modifiers": [
                                            "left_shift",
                                            "left_control"
                                        ]
                                    },
                                    {
                                        "halt": true,
                                        "key_code": "m",
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": ",",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "comma",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "comma"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "key_code": "b",
                                        "modifiers": [
                                            "left_shift",
                                            "left_control"
                                        ]
                                    },
                                    {
                                        "halt": true,
                                        "key_code": "comma",
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 1
                                    }
                                ],
                                "from": {
                                    "key_code": "comma",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "comma"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "key_code": "b",
                                        "modifiers": [
                                            "left_shift",
                                            "left_control"
                                        ]
                                    },
                                    {
                                        "halt": true,
                                        "key_code": "comma",
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": ".",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "period",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "period"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "key_code": "b",
                                        "modifiers": [
                                            "left_shift",
                                            "left_control"
                                        ]
                                    },
                                    {
                                        "halt": true,
                                        "key_code": "period",
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 1
                                    }
                                ],
                                "from": {
                                    "key_code": "period",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "period"
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "/",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "input_sources": [
                                            {
                                                "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                                            }
                                        ],
                                        "type": "input_source_if"
                                    },
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "slash",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "slash"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "key_code": "b",
                                        "modifiers": [
                                            "left_shift",
                                            "left_control"
                                        ]
                                    },
                                    {
                                        "halt": true,
                                        "key_code": "slash",
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "input_sources": [
                                            {
                                                "input_source_id": "com.apple.keylayout.RussianWin"
                                            }
                                        ],
                                        "type": "input_source_if"
                                    },
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "slash",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "equal_sign"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "key_code": "b",
                                        "modifiers": [
                                            "left_shift",
                                            "left_control"
                                        ]
                                    },
                                    {
                                        "halt": true,
                                        "key_code": "equal_sign"
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "input_sources": [
                                            {
                                                "input_source_id": "com.apple.keylayout.RussianWin"
                                            }
                                        ],
                                        "type": "input_source_if"
                                    },
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 1
                                    }
                                ],
                                "from": {
                                    "key_code": "slash",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to": [
                                    {
                                        "key_code": "slash"
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 1
                                    }
                                ],
                                "from": {
                                    "key_code": "slash",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "slash"
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "`",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "grave_accent_and_tilde",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "grave_accent_and_tilde"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "key_code": "equal_sign",
                                        "modifiers": [
                                            "left_shift",
                                            "left_control"
                                        ]
                                    },
                                    {
                                        "halt": true,
                                        "key_code": "grave_accent_and_tilde",
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "1",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "input_sources": [
                                            {
                                                "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                                            }
                                        ],
                                        "type": "input_source_if"
                                    },
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_unless"
                                    }
                                ],
                                "from": {
                                    "key_code": "1",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "1"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "key_code": "1",
                                        "modifiers": [
                                            "left_shift"
                                        ],
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "input_sources": [
                                            {
                                                "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                                            }
                                        ],
                                        "type": "input_source_if"
                                    },
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "1",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "1"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "key_code": "equal_sign",
                                        "modifiers": [
                                            "left_shift",
                                            "left_control"
                                        ]
                                    },
                                    {
                                        "halt": true,
                                        "key_code": "1",
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "input_sources": [
                                            {
                                                "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                                            }
                                        ],
                                        "type": "input_source_if"
                                    },
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 1
                                    }
                                ],
                                "from": {
                                    "key_code": "1",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "1"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "key_code": "1",
                                        "modifiers": [
                                            "left_shift"
                                        ],
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "input_sources": [
                                            {
                                                "input_source_id": "com.apple.keylayout.RussianWin"
                                            }
                                        ],
                                        "type": "input_source_if"
                                    },
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_unless"
                                    }
                                ],
                                "from": {
                                    "key_code": "1",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "1"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "key_code": "1",
                                        "modifiers": [
                                            "left_shift"
                                        ],
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "input_sources": [
                                            {
                                                "input_source_id": "com.apple.keylayout.RussianWin"
                                            }
                                        ],
                                        "type": "input_source_if"
                                    },
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "1",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "7"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "key_code": "equal_sign",
                                        "modifiers": [
                                            "left_shift",
                                            "left_control"
                                        ]
                                    },
                                    {
                                        "halt": true,
                                        "key_code": "7",
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "input_sources": [
                                            {
                                                "input_source_id": "com.apple.keylayout.RussianWin"
                                            }
                                        ],
                                        "type": "input_source_if"
                                    },
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 1
                                    }
                                ],
                                "from": {
                                    "key_code": "1",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "1"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "key_code": "1",
                                        "modifiers": [
                                            "left_shift"
                                        ],
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "2",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "input_sources": [
                                            {
                                                "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                                            }
                                        ],
                                        "type": "input_source_if"
                                    },
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_unless"
                                    }
                                ],
                                "from": {
                                    "key_code": "2",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "2"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "key_code": "2",
                                        "modifiers": [
                                            "left_shift"
                                        ],
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "input_sources": [
                                            {
                                                "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                                            }
                                        ],
                                        "type": "input_source_if"
                                    },
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "2",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "2"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "key_code": "equal_sign",
                                        "modifiers": [
                                            "left_shift",
                                            "left_control"
                                        ]
                                    },
                                    {
                                        "halt": true,
                                        "key_code": "2",
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "input_sources": [
                                            {
                                                "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                                            }
                                        ],
                                        "type": "input_source_if"
                                    },
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 1
                                    }
                                ],
                                "from": {
                                    "key_code": "2",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "2"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "key_code": "2",
                                        "modifiers": [
                                            "left_shift"
                                        ],
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "input_sources": [
                                            {
                                                "input_source_id": "com.apple.keylayout.RussianWin"
                                            }
                                        ],
                                        "type": "input_source_if"
                                    },
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_unless"
                                    }
                                ],
                                "from": {
                                    "key_code": "2",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "2"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "key_code": "2",
                                        "modifiers": [
                                            "left_shift"
                                        ],
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "input_sources": [
                                            {
                                                "input_source_id": "com.apple.keylayout.RussianWin"
                                            }
                                        ],
                                        "type": "input_source_if"
                                    },
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "2",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "5"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "key_code": "equal_sign",
                                        "modifiers": [
                                            "left_shift",
                                            "left_control"
                                        ]
                                    },
                                    {
                                        "halt": true,
                                        "key_code": "5",
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "input_sources": [
                                            {
                                                "input_source_id": "com.apple.keylayout.RussianWin"
                                            }
                                        ],
                                        "type": "input_source_if"
                                    },
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 1
                                    }
                                ],
                                "from": {
                                    "key_code": "2",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "2"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "key_code": "2",
                                        "modifiers": [
                                            "left_shift"
                                        ],
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "3",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "input_sources": [
                                            {
                                                "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                                            }
                                        ],
                                        "type": "input_source_if"
                                    },
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_unless"
                                    }
                                ],
                                "from": {
                                    "key_code": "3",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "3"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "key_code": "3",
                                        "modifiers": [
                                            "left_shift"
                                        ],
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "input_sources": [
                                            {
                                                "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                                            }
                                        ],
                                        "type": "input_source_if"
                                    },
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "3",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "3"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "key_code": "equal_sign",
                                        "modifiers": [
                                            "left_shift",
                                            "left_control"
                                        ]
                                    },
                                    {
                                        "halt": true,
                                        "key_code": "3",
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "input_sources": [
                                            {
                                                "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                                            }
                                        ],
                                        "type": "input_source_if"
                                    },
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 1
                                    }
                                ],
                                "from": {
                                    "key_code": "3",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "3"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "key_code": "3",
                                        "modifiers": [
                                            "left_shift"
                                        ],
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "input_sources": [
                                            {
                                                "input_source_id": "com.apple.keylayout.RussianWin"
                                            }
                                        ],
                                        "type": "input_source_if"
                                    },
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_unless"
                                    }
                                ],
                                "from": {
                                    "key_code": "3",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "3"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "key_code": "3",
                                        "modifiers": [
                                            "left_shift"
                                        ],
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "input_sources": [
                                            {
                                                "input_source_id": "com.apple.keylayout.RussianWin"
                                            }
                                        ],
                                        "type": "input_source_if"
                                    },
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "3",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "1"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "key_code": "equal_sign",
                                        "modifiers": [
                                            "left_shift",
                                            "left_control"
                                        ]
                                    },
                                    {
                                        "halt": true,
                                        "key_code": "1",
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "input_sources": [
                                            {
                                                "input_source_id": "com.apple.keylayout.RussianWin"
                                            }
                                        ],
                                        "type": "input_source_if"
                                    },
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 1
                                    }
                                ],
                                "from": {
                                    "key_code": "3",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "3"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "key_code": "3",
                                        "modifiers": [
                                            "left_shift"
                                        ],
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "4",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "input_sources": [
                                            {
                                                "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                                            }
                                        ],
                                        "type": "input_source_if"
                                    },
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_unless"
                                    }
                                ],
                                "from": {
                                    "key_code": "4",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "4"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "key_code": "4",
                                        "modifiers": [
                                            "left_shift"
                                        ],
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "input_sources": [
                                            {
                                                "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                                            }
                                        ],
                                        "type": "input_source_if"
                                    },
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "4",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "4"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "key_code": "equal_sign",
                                        "modifiers": [
                                            "left_shift",
                                            "left_control"
                                        ]
                                    },
                                    {
                                        "halt": true,
                                        "key_code": "4",
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "input_sources": [
                                            {
                                                "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                                            }
                                        ],
                                        "type": "input_source_if"
                                    },
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 1
                                    }
                                ],
                                "from": {
                                    "key_code": "4",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "4"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "key_code": "4",
                                        "modifiers": [
                                            "left_shift"
                                        ],
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "input_sources": [
                                            {
                                                "input_source_id": "com.apple.keylayout.RussianWin"
                                            }
                                        ],
                                        "type": "input_source_if"
                                    },
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_unless"
                                    }
                                ],
                                "from": {
                                    "key_code": "4",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "4"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "key_code": "4",
                                        "modifiers": [
                                            "left_shift"
                                        ],
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "input_sources": [
                                            {
                                                "input_source_id": "com.apple.keylayout.RussianWin"
                                            }
                                        ],
                                        "type": "input_source_if"
                                    },
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "4",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "3"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "key_code": "equal_sign",
                                        "modifiers": [
                                            "left_shift",
                                            "left_control"
                                        ]
                                    },
                                    {
                                        "halt": true,
                                        "key_code": "3",
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "input_sources": [
                                            {
                                                "input_source_id": "com.apple.keylayout.RussianWin"
                                            }
                                        ],
                                        "type": "input_source_if"
                                    },
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 1
                                    }
                                ],
                                "from": {
                                    "key_code": "4",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "4"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "key_code": "4",
                                        "modifiers": [
                                            "left_shift"
                                        ],
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "5",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "input_sources": [
                                            {
                                                "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                                            }
                                        ],
                                        "type": "input_source_if"
                                    },
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_unless"
                                    }
                                ],
                                "from": {
                                    "key_code": "5",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "5"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "key_code": "5",
                                        "modifiers": [
                                            "left_shift"
                                        ],
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "input_sources": [
                                            {
                                                "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                                            }
                                        ],
                                        "type": "input_source_if"
                                    },
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "5",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "5"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "key_code": "equal_sign",
                                        "modifiers": [
                                            "left_shift",
                                            "left_control"
                                        ]
                                    },
                                    {
                                        "halt": true,
                                        "key_code": "5",
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "input_sources": [
                                            {
                                                "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                                            }
                                        ],
                                        "type": "input_source_if"
                                    },
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 1
                                    }
                                ],
                                "from": {
                                    "key_code": "5",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "5"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "key_code": "5",
                                        "modifiers": [
                                            "left_shift"
                                        ],
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "input_sources": [
                                            {
                                                "input_source_id": "com.apple.keylayout.RussianWin"
                                            }
                                        ],
                                        "type": "input_source_if"
                                    },
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_unless"
                                    }
                                ],
                                "from": {
                                    "key_code": "5",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "5"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "key_code": "5",
                                        "modifiers": [
                                            "left_shift"
                                        ],
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "input_sources": [
                                            {
                                                "input_source_id": "com.apple.keylayout.RussianWin"
                                            }
                                        ],
                                        "type": "input_source_if"
                                    },
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "5",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "9"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "key_code": "equal_sign",
                                        "modifiers": [
                                            "left_shift",
                                            "left_control"
                                        ]
                                    },
                                    {
                                        "halt": true,
                                        "key_code": "9",
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "input_sources": [
                                            {
                                                "input_source_id": "com.apple.keylayout.RussianWin"
                                            }
                                        ],
                                        "type": "input_source_if"
                                    },
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 1
                                    }
                                ],
                                "from": {
                                    "key_code": "5",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "5"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "key_code": "5",
                                        "modifiers": [
                                            "left_shift"
                                        ],
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "6",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "input_sources": [
                                            {
                                                "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                                            }
                                        ],
                                        "type": "input_source_if"
                                    },
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_unless"
                                    }
                                ],
                                "from": {
                                    "key_code": "6",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "6"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "key_code": "6",
                                        "modifiers": [
                                            "left_shift"
                                        ],
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "input_sources": [
                                            {
                                                "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                                            }
                                        ],
                                        "type": "input_source_if"
                                    },
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "6",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "6"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "key_code": "b",
                                        "modifiers": [
                                            "left_shift",
                                            "left_control"
                                        ]
                                    },
                                    {
                                        "halt": true,
                                        "key_code": "6",
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "input_sources": [
                                            {
                                                "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                                            }
                                        ],
                                        "type": "input_source_if"
                                    },
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 1
                                    }
                                ],
                                "from": {
                                    "key_code": "6",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "6"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "key_code": "6",
                                        "modifiers": [
                                            "left_shift"
                                        ],
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "input_sources": [
                                            {
                                                "input_source_id": "com.apple.keylayout.RussianWin"
                                            }
                                        ],
                                        "type": "input_source_if"
                                    },
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_unless"
                                    }
                                ],
                                "from": {
                                    "key_code": "6",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "6"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "key_code": "6",
                                        "modifiers": [
                                            "left_shift"
                                        ],
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "input_sources": [
                                            {
                                                "input_source_id": "com.apple.keylayout.RussianWin"
                                            }
                                        ],
                                        "type": "input_source_if"
                                    },
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "6",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "8"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "key_code": "b",
                                        "modifiers": [
                                            "left_shift",
                                            "left_control"
                                        ]
                                    },
                                    {
                                        "halt": true,
                                        "key_code": "8",
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "input_sources": [
                                            {
                                                "input_source_id": "com.apple.keylayout.RussianWin"
                                            }
                                        ],
                                        "type": "input_source_if"
                                    },
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 1
                                    }
                                ],
                                "from": {
                                    "key_code": "6",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "6"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "key_code": "6",
                                        "modifiers": [
                                            "left_shift"
                                        ],
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "7",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "input_sources": [
                                            {
                                                "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                                            }
                                        ],
                                        "type": "input_source_if"
                                    },
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_unless"
                                    }
                                ],
                                "from": {
                                    "key_code": "7",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "7"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "key_code": "7",
                                        "modifiers": [
                                            "left_shift"
                                        ],
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "input_sources": [
                                            {
                                                "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                                            }
                                        ],
                                        "type": "input_source_if"
                                    },
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "7",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "7"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "key_code": "b",
                                        "modifiers": [
                                            "left_shift",
                                            "left_control"
                                        ]
                                    },
                                    {
                                        "halt": true,
                                        "key_code": "7",
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "input_sources": [
                                            {
                                                "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                                            }
                                        ],
                                        "type": "input_source_if"
                                    },
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 1
                                    }
                                ],
                                "from": {
                                    "key_code": "7",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "7"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "key_code": "7",
                                        "modifiers": [
                                            "left_shift"
                                        ],
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "input_sources": [
                                            {
                                                "input_source_id": "com.apple.keylayout.RussianWin"
                                            }
                                        ],
                                        "type": "input_source_if"
                                    },
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_unless"
                                    }
                                ],
                                "from": {
                                    "key_code": "7",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "7"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "key_code": "7",
                                        "modifiers": [
                                            "left_shift"
                                        ],
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "input_sources": [
                                            {
                                                "input_source_id": "com.apple.keylayout.RussianWin"
                                            }
                                        ],
                                        "type": "input_source_if"
                                    },
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "7",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "2"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "key_code": "b",
                                        "modifiers": [
                                            "left_shift",
                                            "left_control"
                                        ]
                                    },
                                    {
                                        "halt": true,
                                        "key_code": "2",
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "input_sources": [
                                            {
                                                "input_source_id": "com.apple.keylayout.RussianWin"
                                            }
                                        ],
                                        "type": "input_source_if"
                                    },
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 1
                                    }
                                ],
                                "from": {
                                    "key_code": "7",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "7"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "key_code": "7",
                                        "modifiers": [
                                            "left_shift"
                                        ],
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "8",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "input_sources": [
                                            {
                                                "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                                            }
                                        ],
                                        "type": "input_source_if"
                                    },
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_unless"
                                    }
                                ],
                                "from": {
                                    "key_code": "8",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "8"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "key_code": "8",
                                        "modifiers": [
                                            "left_shift"
                                        ],
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "input_sources": [
                                            {
                                                "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                                            }
                                        ],
                                        "type": "input_source_if"
                                    },
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "8",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "8"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "key_code": "b",
                                        "modifiers": [
                                            "left_shift",
                                            "left_control"
                                        ]
                                    },
                                    {
                                        "halt": true,
                                        "key_code": "8",
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "input_sources": [
                                            {
                                                "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                                            }
                                        ],
                                        "type": "input_source_if"
                                    },
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 1
                                    }
                                ],
                                "from": {
                                    "key_code": "8",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "8"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "key_code": "8",
                                        "modifiers": [
                                            "left_shift"
                                        ],
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "input_sources": [
                                            {
                                                "input_source_id": "com.apple.keylayout.RussianWin"
                                            }
                                        ],
                                        "type": "input_source_if"
                                    },
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_unless"
                                    }
                                ],
                                "from": {
                                    "key_code": "8",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "8"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "key_code": "8",
                                        "modifiers": [
                                            "left_shift"
                                        ],
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "input_sources": [
                                            {
                                                "input_source_id": "com.apple.keylayout.RussianWin"
                                            }
                                        ],
                                        "type": "input_source_if"
                                    },
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "8",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "0"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "key_code": "b",
                                        "modifiers": [
                                            "left_shift",
                                            "left_control"
                                        ]
                                    },
                                    {
                                        "halt": true,
                                        "key_code": "0",
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "input_sources": [
                                            {
                                                "input_source_id": "com.apple.keylayout.RussianWin"
                                            }
                                        ],
                                        "type": "input_source_if"
                                    },
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 1
                                    }
                                ],
                                "from": {
                                    "key_code": "8",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "8"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "key_code": "8",
                                        "modifiers": [
                                            "left_shift"
                                        ],
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "9",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "input_sources": [
                                            {
                                                "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                                            }
                                        ],
                                        "type": "input_source_if"
                                    },
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_unless"
                                    }
                                ],
                                "from": {
                                    "key_code": "9",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "9"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "key_code": "9",
                                        "modifiers": [
                                            "left_shift"
                                        ],
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "input_sources": [
                                            {
                                                "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                                            }
                                        ],
                                        "type": "input_source_if"
                                    },
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "9",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "9"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "key_code": "b",
                                        "modifiers": [
                                            "left_shift",
                                            "left_control"
                                        ]
                                    },
                                    {
                                        "halt": true,
                                        "key_code": "9",
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "input_sources": [
                                            {
                                                "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                                            }
                                        ],
                                        "type": "input_source_if"
                                    },
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 1
                                    }
                                ],
                                "from": {
                                    "key_code": "9",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "9"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "key_code": "9",
                                        "modifiers": [
                                            "left_shift"
                                        ],
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "input_sources": [
                                            {
                                                "input_source_id": "com.apple.keylayout.RussianWin"
                                            }
                                        ],
                                        "type": "input_source_if"
                                    },
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_unless"
                                    }
                                ],
                                "from": {
                                    "key_code": "9",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "9"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "key_code": "9",
                                        "modifiers": [
                                            "left_shift"
                                        ],
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "input_sources": [
                                            {
                                                "input_source_id": "com.apple.keylayout.RussianWin"
                                            }
                                        ],
                                        "type": "input_source_if"
                                    },
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "9",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "4"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "key_code": "b",
                                        "modifiers": [
                                            "left_shift",
                                            "left_control"
                                        ]
                                    },
                                    {
                                        "halt": true,
                                        "key_code": "4",
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "input_sources": [
                                            {
                                                "input_source_id": "com.apple.keylayout.RussianWin"
                                            }
                                        ],
                                        "type": "input_source_if"
                                    },
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 1
                                    }
                                ],
                                "from": {
                                    "key_code": "9",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "9"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "key_code": "9",
                                        "modifiers": [
                                            "left_shift"
                                        ],
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "0",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "input_sources": [
                                            {
                                                "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                                            }
                                        ],
                                        "type": "input_source_if"
                                    },
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_unless"
                                    }
                                ],
                                "from": {
                                    "key_code": "0",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "0"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "key_code": "0",
                                        "modifiers": [
                                            "left_shift"
                                        ],
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "input_sources": [
                                            {
                                                "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                                            }
                                        ],
                                        "type": "input_source_if"
                                    },
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "0",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "0"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "key_code": "b",
                                        "modifiers": [
                                            "left_shift",
                                            "left_control"
                                        ]
                                    },
                                    {
                                        "halt": true,
                                        "key_code": "0",
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "input_sources": [
                                            {
                                                "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                                            }
                                        ],
                                        "type": "input_source_if"
                                    },
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 1
                                    }
                                ],
                                "from": {
                                    "key_code": "0",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "0"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "key_code": "0",
                                        "modifiers": [
                                            "left_shift"
                                        ],
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "input_sources": [
                                            {
                                                "input_source_id": "com.apple.keylayout.RussianWin"
                                            }
                                        ],
                                        "type": "input_source_if"
                                    },
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_unless"
                                    }
                                ],
                                "from": {
                                    "key_code": "0",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "0"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "key_code": "0",
                                        "modifiers": [
                                            "left_shift"
                                        ],
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "input_sources": [
                                            {
                                                "input_source_id": "com.apple.keylayout.RussianWin"
                                            }
                                        ],
                                        "type": "input_source_if"
                                    },
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "0",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "6"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "key_code": "b",
                                        "modifiers": [
                                            "left_shift",
                                            "left_control"
                                        ]
                                    },
                                    {
                                        "halt": true,
                                        "key_code": "6",
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "input_sources": [
                                            {
                                                "input_source_id": "com.apple.keylayout.RussianWin"
                                            }
                                        ],
                                        "type": "input_source_if"
                                    },
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 1
                                    }
                                ],
                                "from": {
                                    "key_code": "0",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "0"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "key_code": "0",
                                        "modifiers": [
                                            "left_shift"
                                        ],
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "hyphen",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "hyphen",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "hyphen"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "key_code": "b",
                                        "modifiers": [
                                            "left_shift",
                                            "left_control"
                                        ]
                                    },
                                    {
                                        "halt": true,
                                        "key_code": "hyphen",
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "equal_sign",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "equal_sign",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "equal_sign"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "key_code": "equal_sign",
                                        "modifiers": [
                                            "left_shift",
                                            "left_control"
                                        ]
                                    },
                                    {
                                        "halt": true,
                                        "key_code": "equal_sign",
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "backslash",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "backslash",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "backslash"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "key_code": "b",
                                        "modifiers": [
                                            "left_shift",
                                            "left_control"
                                        ]
                                    },
                                    {
                                        "halt": true,
                                        "key_code": "backslash",
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "tab",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "tab",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "tab"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "key_code": "equal_sign",
                                        "modifiers": [
                                            "left_shift",
                                            "left_control"
                                        ]
                                    },
                                    {
                                        "halt": true,
                                        "key_code": "tab",
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "left_control",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Termius"
                                        ],
                                        "type": "frontmost_application_if"
                                    }
                                ],
                                "from": {
                                    "key_code": "left_control",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to": [
                                    {
                                        "key_code": "left_control",
                                        "lazy": true
                                    }
                                ],
                                "to_if_alone": [
                                    {
                                        "key_code": "h",
                                        "modifiers": [
                                            "command"
                                        ]
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "from": {
                                    "key_code": "left_control",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to": [
                                    {
                                        "key_code": "left_control",
                                        "lazy": true
                                    }
                                ],
                                "to_if_alone": [
                                    {
                                        "shell_command": "open -a Termius"
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "left_option",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/System Settings"
                                        ],
                                        "type": "frontmost_application_if"
                                    }
                                ],
                                "from": {
                                    "key_code": "left_option",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to": [
                                    {
                                        "key_code": "left_option",
                                        "lazy": true
                                    }
                                ],
                                "to_if_alone": [
                                    {
                                        "key_code": "h",
                                        "modifiers": [
                                            "command"
                                        ]
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "from": {
                                    "key_code": "left_option",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to": [
                                    {
                                        "key_code": "left_option",
                                        "lazy": true
                                    }
                                ],
                                "to_if_alone": [
                                    {
                                        "shell_command": "open -a 'System Settings'"
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "f1",
                        "manipulators": [
                            {
                                "from": {
                                    "key_code": "f1"
                                },
                                "to": [
                                    {
                                        "key_code": "display_brightness_decrement"
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "f2",
                        "manipulators": [
                            {
                                "from": {
                                    "key_code": "f2"
                                },
                                "to": [
                                    {
                                        "key_code": "display_brightness_increment"
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "f3",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/GuruPro"
                                        ],
                                        "type": "frontmost_application_if"
                                    }
                                ],
                                "from": {
                                    "key_code": "f3",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "h",
                                        "modifiers": [
                                            "command"
                                        ]
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "from": {
                                    "key_code": "f3",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "halt": true,
                                        "shell_command": "open -a GuruPro"
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "f4",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Weather"
                                        ],
                                        "type": "frontmost_application_if"
                                    }
                                ],
                                "from": {
                                    "key_code": "f4",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to": [
                                    {
                                        "key_code": "h",
                                        "modifiers": [
                                            "command"
                                        ]
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "from": {
                                    "key_code": "f4",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "shell_command": "open -a Weather"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "repeat": false,
                                        "shell_command": "open -a Weather"
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "f5",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Preview"
                                        ],
                                        "type": "frontmost_application_if"
                                    }
                                ],
                                "from": {
                                    "key_code": "f5",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to": [
                                    {
                                        "key_code": "h",
                                        "modifiers": [
                                            "command"
                                        ]
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "from": {
                                    "key_code": "f5",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "halt": true,
                                        "shell_command": "open -a Preview"
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "f6",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/VLC"
                                        ],
                                        "type": "frontmost_application_if"
                                    }
                                ],
                                "from": {
                                    "key_code": "f6",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to": [
                                    {
                                        "key_code": "h",
                                        "modifiers": [
                                            "command"
                                        ]
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "from": {
                                    "key_code": "f6",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "halt": true,
                                        "shell_command": "open -a VLC"
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "f7",
                        "manipulators": [
                            {
                                "from": {
                                    "key_code": "f7",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "halt": true,
                                        "shell_command": "echo x0o1@ya.ru|pbcopy"
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "f8",
                        "manipulators": [
                            {
                                "from": {
                                    "key_code": "f8",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "shell_command": "/Applications/emacsclient --no-wait --eval '(emms-pause)'"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "repeat": false,
                                        "shell_command": "open -a SwitchBetweenAudioDevices.app"
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "f9",
                        "manipulators": [
                            {
                                "from": {
                                    "key_code": "f9",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "shell_command": "/Applications/emacsclient --no-wait --eval '(emms-seek-forward-or-next)'"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "shell_command": "/Applications/emacsclient --no-wait --eval '(emms-seek-backward-or-previous)'"
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "f10",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Karabiner-Elements"
                                        ],
                                        "type": "frontmost_application_if"
                                    }
                                ],
                                "from": {
                                    "key_code": "f10",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to": [
                                    {
                                        "key_code": "h",
                                        "modifiers": [
                                            "command"
                                        ]
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "from": {
                                    "key_code": "f10",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "shell_command": "defaults write -g InitialKeyRepeat -int 10 && defaults write -g KeyRepeat -int 2 && echo \"normal min 15 (225 ms) and 2 (30 ms)\""
                                    },
                                    {
                                        "shell_command": "open -a Karabiner-Elements"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "shell_command": "open -a Karabiner-EventViewer"
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "f13",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Brave Browser"
                                        ],
                                        "type": "frontmost_application_unless"
                                    }
                                ],
                                "from": {
                                    "key_code": "f13",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to": [
                                    {
                                        "repeat": false,
                                        "select_input_source": {
                                            "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                                        }
                                    },
                                    {
                                        "shell_command": "open -a 'Brave Browser'"
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Brave Browser"
                                        ],
                                        "type": "frontmost_application_if"
                                    }
                                ],
                                "from": {
                                    "key_code": "f13",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to": [
                                    {
                                        "repeat": false,
                                        "select_input_source": {
                                            "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                                        }
                                    },
                                    {
                                        "key_code": "h",
                                        "modifiers": [
                                            "command"
                                        ]
                                    },
                                    {
                                        "shell_command": "open -a 'Emacs'"
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "f14",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "input_sources": [
                                            {
                                                "input_source_id": "com.apple.keylayout.RussianWin"
                                            }
                                        ],
                                        "type": "input_source_if"
                                    }
                                ],
                                "from": {
                                    "key_code": "f14",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to": [
                                    {
                                        "repeat": false,
                                        "select_input_source": {
                                            "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                                        }
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "input_sources": [
                                            {
                                                "input_source_id": "com.apple.keylayout.ABC"
                                            }
                                        ],
                                        "type": "input_source_if"
                                    }
                                ],
                                "from": {
                                    "key_code": "f14",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to": [
                                    {
                                        "repeat": false,
                                        "select_input_source": {
                                            "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                                        }
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "input_sources": [
                                            {
                                                "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                                            }
                                        ],
                                        "type": "input_source_if"
                                    }
                                ],
                                "from": {
                                    "key_code": "f14",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to": [
                                    {
                                        "repeat": false,
                                        "select_input_source": {
                                            "input_source_id": "com.apple.keylayout.RussianWin"
                                        }
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "f15",
                        "manipulators": [
                            {
                                "from": {
                                    "key_code": "f15",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to": [
                                    {
                                        "select_input_source": {
                                            "input_source_id": "org.sil.ukelele.keyboardlayout.engram2.0.engineerengram"
                                        }
                                    },
                                    {
                                        "halt": true,
                                        "key_code": "tab",
                                        "modifiers": [
                                            "command"
                                        ],
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "arrows",
                        "manipulators": [
                            {
                                "from": {
                                    "key_code": "j",
                                    "modifiers": {
                                        "mandatory": [
                                            "command"
                                        ],
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to": [
                                    {
                                        "key_code": "left_arrow"
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "from": {
                                    "key_code": "k",
                                    "modifiers": {
                                        "mandatory": [
                                            "command"
                                        ],
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to": [
                                    {
                                        "key_code": "down_arrow"
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "from": {
                                    "key_code": "i",
                                    "modifiers": {
                                        "mandatory": [
                                            "command"
                                        ],
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to": [
                                    {
                                        "key_code": "up_arrow"
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "from": {
                                    "key_code": "l",
                                    "modifiers": {
                                        "mandatory": [
                                            "command"
                                        ],
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to": [
                                    {
                                        "key_code": "right_arrow"
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "name": "multitouch_extension_finger_count_total",
                                        "type": "variable_unless",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "i",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to": [
                                    {
                                        "key_code": "up_arrow"
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "name": "multitouch_extension_finger_count_total",
                                        "type": "variable_unless",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "j",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to": [
                                    {
                                        "key_code": "left_arrow"
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "name": "multitouch_extension_finger_count_total",
                                        "type": "variable_unless",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "k",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to": [
                                    {
                                        "key_code": "down_arrow"
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "name": "multitouch_extension_finger_count_total",
                                        "type": "variable_unless",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "l",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to": [
                                    {
                                        "key_code": "right_arrow"
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "page_up",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_unless"
                                    }
                                ],
                                "from": {
                                    "key_code": "page_up",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "page_up"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "key_code": "home"
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "page_up",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "page_up"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "key_code": "home"
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "page_down",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_unless"
                                    }
                                ],
                                "from": {
                                    "key_code": "page_down",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "page_down"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "key_code": "end"
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "page_down",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "page_down"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "key_code": "end"
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "pause",
                        "manipulators": [
                            {
                                "from": {
                                    "key_code": "pause",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to": [
                                    {
                                        "software_function": {
                                            "iokit_power_management_sleep_system": {
                                                "delay_milliseconds": 500
                                            }
                                        }
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "left_arrow",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/VLC"
                                        ],
                                        "type": "frontmost_application_if"
                                    }
                                ],
                                "from": {
                                    "key_code": "left_arrow",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to": [
                                    {
                                        "key_code": "j"
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "right_arrow",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/VLC"
                                        ],
                                        "type": "frontmost_application_if"
                                    }
                                ],
                                "from": {
                                    "key_code": "right_arrow",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to": [
                                    {
                                        "key_code": "l"
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "return_or_enter",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/VLC"
                                        ],
                                        "type": "frontmost_application_if"
                                    }
                                ],
                                "from": {
                                    "key_code": "return_or_enter",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_if_alone": [
                                    {
                                        "software_function": {
                                            "set_mouse_cursor_position": {
                                                "screen": 0,
                                                "x": "50%",
                                                "y": "50%"
                                            }
                                        }
                                    },
                                    {
                                        "software_function": {
                                            "cg_event_double_click": {
                                                "button": 0
                                            }
                                        }
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "key_code": "h",
                                        "modifiers": [
                                            "command",
                                            "option"
                                        ]
                                    },
                                    {
                                        "key_code": "m",
                                        "modifiers": [
                                            "command"
                                        ]
                                    },
                                    {
                                        "halt": true,
                                        "repeat": false,
                                        "shell_command": "open -a Emacs.app"
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "return_or_enter",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "return_or_enter"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "key_code": "m",
                                        "modifiers": [
                                            "control"
                                        ],
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 1
                                    }
                                ],
                                "from": {
                                    "key_code": "return_or_enter",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "return_or_enter"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "key_code": "k",
                                        "modifiers": [
                                            "left_control"
                                        ],
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_unless"
                                    }
                                ],
                                "from": {
                                    "key_code": "return_or_enter",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "return_or_enter"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "key_code": "h",
                                        "modifiers": [
                                            "command",
                                            "option"
                                        ]
                                    },
                                    {
                                        "key_code": "m",
                                        "modifiers": [
                                            "command"
                                        ]
                                    },
                                    {
                                        "halt": true,
                                        "repeat": false,
                                        "shell_command": "open -a Emacs.app"
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "escape",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/VLC"
                                        ],
                                        "type": "frontmost_application_if"
                                    }
                                ],
                                "from": {
                                    "key_code": "escape",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_if_alone": [
                                    {
                                        "software_function": {
                                            "set_mouse_cursor_position": {
                                                "screen": 0,
                                                "x": "50%",
                                                "y": "50%"
                                            }
                                        }
                                    },
                                    {
                                        "software_function": {
                                            "cg_event_double_click": {
                                                "button": 0
                                            }
                                        }
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "repeat": false,
                                        "shell_command": "open -a Emacs.app"
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 0
                                    }
                                ],
                                "from": {
                                    "key_code": "escape",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "escape"
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "key_code": "j",
                                        "modifiers": [
                                            "control"
                                        ],
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_if"
                                    },
                                    {
                                        "name": "insert mode activated",
                                        "type": "variable_if",
                                        "value": 1
                                    }
                                ],
                                "from": {
                                    "key_code": "escape",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "escape"
                                    },
                                    {
                                        "set_variable": {
                                            "name": "left_command pressed",
                                            "value": 0
                                        }
                                    },
                                    {
                                        "set_variable": {
                                            "name": "spacebar pressed",
                                            "value": 0
                                        }
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "key_code": "quote",
                                        "modifiers": [
                                            "left_control"
                                        ],
                                        "repeat": false
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "file_paths": [
                                            "/Emacs"
                                        ],
                                        "type": "frontmost_application_unless"
                                    }
                                ],
                                "from": {
                                    "key_code": "escape",
                                    "modifiers": {
                                        "optional": [
                                            "any"
                                        ]
                                    }
                                },
                                "to_after_key_up": [
                                    {
                                        "key_code": "escape"
                                    },
                                    {
                                        "set_variable": {
                                            "name": "left_command pressed",
                                            "value": 0
                                        }
                                    }
                                ],
                                "to_if_held_down": [
                                    {
                                        "halt": true,
                                        "repeat": false,
                                        "shell_command": "open -a Emacs.app"
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    }
                ]
            },
            "devices": [
                {
                    "disable_built_in_keyboard_if_exists": false,
                    "fn_function_keys": [],
                    "identifiers": {
                        "is_keyboard": true,
                        "is_pointing_device": false,
                        "product_id": 641,
                        "vendor_id": 1452
                    },
                    "ignore": false,
                    "manipulate_caps_lock_led": true,
                    "simple_modifications": [
                        {
                            "from": {
                                "apple_vendor_top_case_key_code": "keyboard_fn"
                            },
                            "to": [
                                {
                                    "key_code": "left_control"
                                }
                            ]
                        },
                        {
                            "from": {
                                "key_code": "caps_lock"
                            },
                            "to": [
                                {
                                    "key_code": "escape"
                                }
                            ]
                        },
                        {
                            "from": {
                                "key_code": "delete_or_backspace"
                            },
                            "to": [
                                {
                                    "key_code": "f13"
                                }
                            ]
                        },
                        {
                            "from": {
                                "key_code": "escape"
                            },
                            "to": [
                                {
                                    "key_code": "f15"
                                }
                            ]
                        },
                        {
                            "from": {
                                "key_code": "f11"
                            },
                            "to": [
                                {
                                    "consumer_key_code": "volume_decrement"
                                }
                            ]
                        },
                        {
                            "from": {
                                "key_code": "f12"
                            },
                            "to": [
                                {
                                    "consumer_key_code": "volume_increment"
                                }
                            ]
                        },
                        {
                            "from": {
                                "key_code": "left_control"
                            },
                            "to": [
                                {
                                    "key_code": "left_option"
                                }
                            ]
                        },
                        {
                            "from": {
                                "key_code": "left_option"
                            },
                            "to": [
                                {
                                    "key_code": "page_up"
                                }
                            ]
                        },
                        {
                            "from": {
                                "key_code": "left_shift"
                            },
                            "to": [
                                {
                                    "sticky_modifier": {
                                        "left_shift": "toggle"
                                    }
                                },
                                {
                                    "key_code": "left_shift"
                                }
                            ]
                        },
                        {
                            "from": {
                                "key_code": "return_or_enter"
                            },
                            "to": [
                                {
                                    "key_code": "f14"
                                }
                            ]
                        },
                        {
                            "from": {
                                "key_code": "right_command"
                            },
                            "to": [
                                {
                                    "key_code": "return_or_enter"
                                }
                            ]
                        },
                        {
                            "from": {
                                "key_code": "right_option"
                            },
                            "to": [
                                {
                                    "key_code": "page_down"
                                }
                            ]
                        },
                        {
                            "from": {
                                "key_code": "right_shift"
                            },
                            "to": [
                                {
                                    "sticky_modifier": {
                                        "right_shift": "toggle"
                                    }
                                },
                                {
                                    "key_code": "right_shift"
                                }
                            ]
                        }
                    ],
                    "treat_as_built_in_keyboard": false
                },
                {
                    "disable_built_in_keyboard_if_exists": false,
                    "fn_function_keys": [],
                    "identifiers": {
                        "is_keyboard": true,
                        "is_pointing_device": false,
                        "product_id": 258,
                        "vendor_id": 10730
                    },
                    "ignore": false,
                    "manipulate_caps_lock_led": true,
                    "simple_modifications": [
                        {
                            "from": {
                                "key_code": "f11"
                            },
                            "to": [
                                {
                                    "consumer_key_code": "volume_decrement"
                                }
                            ]
                        },
                        {
                            "from": {
                                "key_code": "f12"
                            },
                            "to": [
                                {
                                    "consumer_key_code": "volume_increment"
                                }
                            ]
                        },
                        {
                            "from": {
                                "key_code": "left_shift"
                            },
                            "to": [
                                {
                                    "sticky_modifier": {
                                        "left_shift": "toggle"
                                    }
                                },
                                {
                                    "key_code": "left_shift"
                                }
                            ]
                        },
                        {
                            "from": {
                                "key_code": "right_shift"
                            },
                            "to": [
                                {
                                    "sticky_modifier": {
                                        "right_shift": "toggle"
                                    }
                                },
                                {
                                    "key_code": "right_shift"
                                }
                            ]
                        }
                    ],
                    "treat_as_built_in_keyboard": false
                },
                {
                    "disable_built_in_keyboard_if_exists": false,
                    "fn_function_keys": [],
                    "identifiers": {
                        "is_keyboard": false,
                        "is_pointing_device": true,
                        "product_id": 258,
                        "vendor_id": 10730
                    },
                    "ignore": true,
                    "manipulate_caps_lock_led": false,
                    "simple_modifications": [],
                    "treat_as_built_in_keyboard": false
                },
                {
                    "disable_built_in_keyboard_if_exists": false,
                    "fn_function_keys": [],
                    "identifiers": {
                        "is_keyboard": false,
                        "is_pointing_device": true,
                        "product_id": 641,
                        "vendor_id": 1452
                    },
                    "ignore": true,
                    "manipulate_caps_lock_led": false,
                    "simple_modifications": [],
                    "treat_as_built_in_keyboard": false
                },
                {
                    "disable_built_in_keyboard_if_exists": false,
                    "fn_function_keys": [],
                    "identifiers": {
                        "is_keyboard": false,
                        "is_pointing_device": true,
                        "product_id": 781,
                        "vendor_id": 1452
                    },
                    "ignore": true,
                    "manipulate_caps_lock_led": false,
                    "simple_modifications": [],
                    "treat_as_built_in_keyboard": false
                },
                {
                    "disable_built_in_keyboard_if_exists": false,
                    "fn_function_keys": [],
                    "identifiers": {
                        "is_keyboard": true,
                        "is_pointing_device": false,
                        "product_id": 259,
                        "vendor_id": 10730
                    },
                    "ignore": false,
                    "manipulate_caps_lock_led": true,
                    "simple_modifications": [
                        {
                            "from": {
                                "key_code": "left_shift"
                            },
                            "to": [
                                {
                                    "sticky_modifier": {
                                        "left_shift": "toggle"
                                    }
                                },
                                {
                                    "key_code": "left_shift"
                                }
                            ]
                        },
                        {
                            "from": {
                                "key_code": "right_shift"
                            },
                            "to": [
                                {
                                    "sticky_modifier": {
                                        "right_shift": "toggle"
                                    }
                                },
                                {
                                    "key_code": "right_shift"
                                }
                            ]
                        }
                    ],
                    "treat_as_built_in_keyboard": false
                },
                {
                    "disable_built_in_keyboard_if_exists": false,
                    "fn_function_keys": [],
                    "identifiers": {
                        "is_keyboard": true,
                        "is_pointing_device": false,
                        "product_id": 50475,
                        "vendor_id": 1133
                    },
                    "ignore": false,
                    "manipulate_caps_lock_led": true,
                    "simple_modifications": [],
                    "treat_as_built_in_keyboard": false
                },
                {
                    "disable_built_in_keyboard_if_exists": false,
                    "fn_function_keys": [],
                    "identifiers": {
                        "is_keyboard": false,
                        "is_pointing_device": true,
                        "product_id": 50475,
                        "vendor_id": 1133
                    },
                    "ignore": true,
                    "manipulate_caps_lock_led": false,
                    "simple_modifications": [],
                    "treat_as_built_in_keyboard": false
                },
                {
                    "disable_built_in_keyboard_if_exists": false,
                    "fn_function_keys": [],
                    "identifiers": {
                        "is_keyboard": false,
                        "is_pointing_device": true,
                        "product_id": 71,
                        "vendor_id": 1118
                    },
                    "ignore": true,
                    "manipulate_caps_lock_led": false,
                    "simple_modifications": [],
                    "treat_as_built_in_keyboard": false
                },
                {
                    "disable_built_in_keyboard_if_exists": false,
                    "fn_function_keys": [],
                    "identifiers": {
                        "is_keyboard": false,
                        "is_pointing_device": false,
                        "product_id": 258,
                        "vendor_id": 10730
                    },
                    "ignore": false,
                    "manipulate_caps_lock_led": false,
                    "simple_modifications": [],
                    "treat_as_built_in_keyboard": false
                }
            ],
            "fn_function_keys": [
                {
                    "from": {
                        "key_code": "f1"
                    },
                    "to": [
                        {
                            "consumer_key_code": "display_brightness_decrement"
                        }
                    ]
                },
                {
                    "from": {
                        "key_code": "f2"
                    },
                    "to": [
                        {
                            "consumer_key_code": "display_brightness_increment"
                        }
                    ]
                },
                {
                    "from": {
                        "key_code": "f3"
                    },
                    "to": [
                        {
                            "apple_vendor_keyboard_key_code": "mission_control"
                        }
                    ]
                },
                {
                    "from": {
                        "key_code": "f4"
                    },
                    "to": [
                        {
                            "apple_vendor_keyboard_key_code": "spotlight"
                        }
                    ]
                },
                {
                    "from": {
                        "key_code": "f5"
                    },
                    "to": [
                        {
                            "consumer_key_code": "dictation"
                        }
                    ]
                },
                {
                    "from": {
                        "key_code": "f6"
                    },
                    "to": [
                        {
                            "key_code": "f6"
                        }
                    ]
                },
                {
                    "from": {
                        "key_code": "f7"
                    },
                    "to": [
                        {
                            "consumer_key_code": "rewind"
                        }
                    ]
                },
                {
                    "from": {
                        "key_code": "f8"
                    },
                    "to": [
                        {
                            "consumer_key_code": "play_or_pause"
                        }
                    ]
                },
                {
                    "from": {
                        "key_code": "f9"
                    },
                    "to": [
                        {
                            "consumer_key_code": "fast_forward"
                        }
                    ]
                },
                {
                    "from": {
                        "key_code": "f10"
                    },
                    "to": [
                        {
                            "consumer_key_code": "mute"
                        }
                    ]
                },
                {
                    "from": {
                        "key_code": "f11"
                    },
                    "to": [
                        {
                            "consumer_key_code": "volume_decrement"
                        }
                    ]
                },
                {
                    "from": {
                        "key_code": "f12"
                    },
                    "to": [
                        {
                            "consumer_key_code": "volume_increment"
                        }
                    ]
                }
            ],
            "name": "Default profile",
            "parameters": {
                "delay_milliseconds_before_open_device": 1000
            },
            "selected": true,
            "simple_modifications": [],
            "virtual_hid_keyboard": {
                "country_code": 0,
                "indicate_sticky_modifier_keys_state": false,
                "mouse_key_xy_scale": 100
            }
        }
    ]
}